<?php if (!defined('THINK_PATH')) exit();?>﻿<html>
<title>dasd</title>
<body>


<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
        <script>
                      
            wx.ready(function () {
                  // 1 判断当前版本是否支持指定 JS 接口，支持批量判断
                wx.checkJsApi({
                  jsApiList: [
                    'getNetworkType',
                    'previewImage',
                     'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo'
                  ],            
                });

              var shareData = {
             //标题
                title: '标sss题',
//摘要
                  desc: '摘要',
//链接,可以换主页
                  link: '<?php echo ($signPackage["url"]); ?>',
//缩略图
                  imgUrl: '缩略图', 
            
              };
              wx.onMenuShareAppMessage(shareData);
              wx.onMenuShareTimeline(shareData);
              wx.onMenuShareQQ(shareData);
              wx.onMenuShareWeibo(shareData);
            });
			setTimeout(function(){
			alert("sss")
			wx.config({
            appId: '<?php echo ($signPackage["appId"]); ?>',
                timestamp: <?php echo ($signPackage["timestamp"]); ?>,
                nonceStr: '<?php echo ($signPackage["nonceStr"]); ?>',
                signature: '<?php echo ($signPackage["signature"]); ?>',
               jsApiList: [
                    'checkJsApi',
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage',
                    'onMenuShareQQ',
                    'onMenuShareWeibo'
                  ]
              });   
			  },10000)
        </script>
</body>
</html>